//
//  UserShareModel.m
//  吃货·上海
//
//  Created by 濮亚军 on 15/11/24.
//  Copyright © 2015年 濮亚军. All rights reserved.
//

#import "UserShareModel.h"
#import <BmobSDK/BmobFile.h>
@implementation UserShareModel

-(instancetype)initWithbmobObject:(BmobObject *)bObject
{
    self = [super init];
    if (self)
    {
        self.userName = [bObject objectForKey:@"username"];
        self.createdAt = [bObject createdAt];
        self.info = [bObject objectForKey:@"info"];
        BmobFile *photoBmobFile = [bObject objectForKey:@"photo"];
        self.photo = photoBmobFile.url;
        BmobFile *usericon = [bObject objectForKey:@"userIcon"];
        self.userIcon = usericon.url;
        self.objectId = [bObject objectId];
    }
    return self;
}

















@end
